package com.zretc.kscxmz.services.impl;

import com.zretc.kscxmz.entity.Clock;
import com.zretc.kscxmz.mappers.ClockMapper;
import com.zretc.kscxmz.services.ClockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class ClockServiceImpl implements ClockService {

    @Autowired
    private ClockMapper clockMapper;


    @Override
    public String getWorkStatusByid(int accountId,String workTime) {
        return clockMapper.findWorkStatusByid(accountId,workTime);
    }

   /* @Override
    public String getWorkTimesByid(int accountId) {
        return clockMapper.findWorkTimesByid(accountId);
    }
*/
    @Override
    public int addWorkInfo(Map<String, Object> param) {
        return clockMapper.insertWorkInfo(param);
    }

    @Override
    public List<Clock> getAllWorkStatusByid(int accountId) {
        return clockMapper.findAllWorkStatusByid(accountId);
    }
}
